/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LPY_H
#define __LPY_H

#include "math.h"

typedef struct _lpf_t_
{
    float a0;    
    float b0;    
    float b1;    

    float xn_1;    //上一次的值n
    float yn_1;
} lpf_t;

void lpf_init(lpf_t *hlpf, float wc,float dt);
float lpf_apply(lpf_t *hlpf, float in);

#endif /* __LPY_H */

/******************* (H) COPYRIGHT 2024 FUYEBING*****END OF FILE************/